package com.sub.project.info.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.sub.project.info.domain.Honor;
import com.sub.project.info.mapper.HonorMapper;
import com.sub.project.info.service.IHonorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-01-07
 */
@Service
public class HonorServiceImpl extends ServiceImpl<HonorMapper, Honor> implements IHonorService
{
    @Autowired
    HonorMapper honorMapper;

    @Override
    public List<Honor> findByopenId(String openId) {
        Map<String, Object> columnMap = new  HashMap();
        columnMap.put("open_id",openId);
        List<Honor> honorList = honorMapper.selectByMap(columnMap);
        return honorList;
    }
}
